﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookingHotel.ClasseDiDominio
{
    class Booking
    {
        public Client Client { get; set; }
        public String TypeRoom { get; set; }
        public int NumberOfRoom { get; set; }
        public decimal Price { get; set; }
        public DateTime StartBooking { get; set; }
        public DateTime EndBooking { get; set; }
        public int Id { get; private set; }

        public Booking(Client client, string typeRoom, int numberOfRoom, decimal price, DateTime startBooking, DateTime endBooking, int id)
        {
            Client = client;
            TypeRoom = typeRoom;
            NumberOfRoom =numberOfRoom;
            Price = price;
            StartBooking = startBooking;
            EndBooking = endBooking;
            Id = id;
        }

        public string ToString()
        {
            return Id + ": " + StartBooking.ToShortDateString() + " " + EndBooking.ToShortDateString() + Price.ToString() + " ClientId: " + Client.Id + "RoomType: " + TypeRoom + "Quantity: " + NumberOfRoom + "\n";
        }
    }
}
